Fix compilation warning: set a default case in switchs
authorJavier Jardón <jjardon@gnome.org>
Thu, 15 Apr 2010 19:10:32 +0000 (21:10 +0200)
committerJavier Jardón <jjardon@gnome.org>
Thu, 15 Apr 2010 19:10:32 +0000 (21:10 +0200)
gtk/gtktoolbar.c

index a54379138740d12d5406588ea87d1eecca8d8a3f..b56abdf462fc2352a7909e849fc31e808fe22ad3 100644 (file)
@@ -4303,6 +4303,10 @@ toolbar_content_get_goal_allocation (ToolbarContent *content,
        */
       g_assert_not_reached ();
       break;
+
+    default:
+      g_assert_not_reached ();
+      break;
     }
 }
 
@@ -4311,7 +4315,7 @@ toolbar_content_get_allocation (ToolbarContent *content,
                                GtkAllocation  *allocation)
 {
   GtkToolbarChild *child;
-  
+
   switch (content->type)
     {
     case TOOL_ITEM:
@@ -4326,6 +4330,10 @@ toolbar_content_get_allocation (ToolbarContent *content,
       else
        *allocation = child->widget->allocation;
       break;
+
+    default:
+      g_assert_not_reached ();
+      break;
     }
 }